<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th rowspan="2">地区</th>
        <th rowspan="2">大区</th>
        <th rowspan="2">小区</th>
        <th rowspan="2">省份</th>
        <th rowspan="2">城市</th>
        <th rowspan="2">城市等级</th>
        <th rowspan="2">专营店</th>
        <th rowspan="2">专营店编码</th>
        <th rowspan="2">所属双月</th>
        <th rowspan="2">项目流水号</th>
        <th rowspan="2">项目名称</th>
        <th rowspan="2">项目标准动作</th>
        <th rowspan="2">项目活动类型</th>
        <th rowspan="2">线下活动流水号</th>
        <th rowspan="2">线下活动地址</th>
        <th rowspan="2">线下活动起始时间</th>
        <th rowspan="2">线下活动结束时间</th>
        <th rowspan="2">线下活动预算费用</th>
        <th colspan="3">预算申请</th>
        <th colspan="3">预算审核</th>
        <th colspan="3">结算申请</th>
        <th colspan="3">结算审核</th>
    </tr>
    <tr>
    	<th>活动预算费用</th>
    	<th>场馆配套预算费用</th>
    	<th>活动组织预算费用</th>
    	<th>活动审核费用</th>
    	<th>场馆配套预算审核费用</th>
    	<th>活动组织预算审核费用</th>
    	<th>活动结算申请费用</th>
    	<th>场馆配套结算申请费用</th>
    	<th>活动组织结算申请费用</th>
    	<th>活动结算审核费用</th>
    	<th>场馆配套结算审核费用</th>
    	<th>活动组织结算审核费用</th>
    </tr>
    <?php
    foreach($offlineList as $k => $v){
    	$projectData = isset($projectList[$v['projectId']]) ? $projectList[$v['projectId']] : array();
		$procData = isset($procList[$projectData['procId']]) ? $procList[$projectData['procId']] : array();
		$storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
		$detailMoney = isset($moneyDetailList[$v['id']]) ? $moneyDetailList[$v['id']] : array();
    ?>
    <tr>
        <td><?php echo $storeData['area'];?></td>
        <td><?php echo $storeData['region'];?></td>
        <td><?php echo $storeData['spsarea'];?></td>
        <td><?php echo $storeData['province'];?></td>
        <td><?php echo $storeData['city'];?></td>
        <td><?php echo $storeData['cityLevel'];?></td>
        <td><?php echo $storeData['storeName'];?></td>
        <td><?php echo $storeData['coding'];?></td>
        <td><?php echo $procData['timeUnitStr'];?></td>
        <td><?php echo $projectData['id'];?></td>
        <td><?php echo $projectData['projectName'];?></td>
        <td><?php echo $projectData['actionTypeStr'];?></td>
        <td><?php echo $projectData['eventTypeStr']?></td>
        <td><?php echo $v['id'];?></td>
        <td><?php echo $v['address'];?></td>
        <td><?php echo $v['startTime'];?></td>
        <td><?php echo $v['endTime'];?></td>
        <td><?php echo $v['budgetApply'];?></td>
        <td><?php echo $detailMoney['budgetApply']['total'];?></td>
        <td><?php echo $detailMoney['budgetApply']['venue'];?></td>
        <td><?php echo $detailMoney['budgetApply']['activity'];?></td>
        <td><?php echo $detailMoney['budgetAudit']['total'];?></td>
        <td><?php echo $detailMoney['budgetAudit']['venue'];?></td>
        <td><?php echo $detailMoney['budgetAudit']['activity'];?></td>
        <td><?php echo $detailMoney['settleApply']['total'];?></td>
        <td><?php echo $detailMoney['settleApply']['venue'];?></td>
        <td><?php echo $detailMoney['settleApply']['activity'];?></td>
        <td><?php echo $detailMoney['settleAudit']['total'];?></td>
        <td><?php echo $detailMoney['settleAudit']['venue'];?></td>
        <td><?php echo $detailMoney['settleAudit']['activity'];?></td>
    </tr>
    <?php }?>
</table>